package com.jms.login.service.impl;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jms.login.dao.CustomerDao;
import com.jms.login.po.Customer;
import com.jms.login.service.CustomerService;

@Service("customerService")
public class CustomerServiceImpl implements CustomerService {
	
	/**
	 * 注入数据层dao对象
	 */
	@Autowired(required=true)
	@Resource(name="customerDao")
	private CustomerDao customerDao;
	
	@Override
	public Customer login(Customer customer) {
		return customerDao.findByUserNameAndPassWord(customer);
	}

}
